#ifndef SETTINGSDIALOG_H
#define SETTINGSDIALOG_H

#include <QDialog>

namespace Ui {
class SettingsDialog;
}

class QStringListModel;
class QModelIndex;

class SettingsDialog : public QDialog
{
    Q_OBJECT
    
public:
    explicit SettingsDialog(QWidget *parent = 0);
    ~SettingsDialog();

public slots:
    void accept();

private slots:
    void on_min_spinBox_valueChanged(int arg1);

    void on_max_spinBox_valueChanged(int arg1);

    void on_smtp_test_pushButton_clicked();

    void on_add_recipient_toolButton_clicked();

    void recipientActivated(const QModelIndex& index);

    void on_recipient_remove_toolButton_clicked();

    void on_type_comboBox_activated(const QString &arg1);

private:
    void loadSettings();
    void saveSettings();
    bool checkMailSettings();
    Ui::SettingsDialog *ui;
    QStringListModel *model;
};

#endif // SETTINGSDIALOG_H
